package com.shop.front.request.store;

import com.shop.domain.pink.StorePink;
import com.shop.domain.pink.StoreSnapPink;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@ApiModel("加入购物车请求参数")
@Data
public class StoreCartAddReq {

    @ApiModelProperty(value = "商品ID")
    @NotBlank(message = "请选择一个商品")
    private String productSign;

    @ApiModelProperty("商品规格ID")
    @NotBlank(message = "请选择一个商品规格")
    private String productAttrValueSign;

    @ApiModelProperty(value = "商品ID", hidden = true)
    private Long productId;

    @ApiModelProperty(value = "商品规格ID", hidden = true)
    private Long productAttrValueId;

    @ApiModelProperty("数量")
    @Min(value = 1, message = "数量必须大于0")
    private Integer cartNum;

    @ApiModelProperty("是否为立即购买 0 否 1 是，默认为 0")
    private Integer isNow = 0;

    @ApiModelProperty(value = "拼团ID", hidden = true)
    private Long storePinkId;

    @ApiModelProperty("拼团Sign")
    private String storePinkSign;

    @ApiModelProperty(value = "拼团信息", hidden = true)
    private StorePink storePink;

    @ApiModelProperty(value = "抢购拼团信息", hidden = true)
    private StoreSnapPink storeSnapPink;

    @ApiModelProperty("是否为积分商品 0 否 1 是，默认为 0")
    private Integer isIntegral = 0;

}
